#include "mainwindow.h"

#include <QApplication>
#include <QSysInfo>
#include <QTextCodec>

QString tmpDir;

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    MainWindow w;
    QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8"));
    QString sysType = QSysInfo::productType();
    if(sysType == "osx")
        tmpDir = QString("../../../../tmp/");
    else
        tmpDir = QString("../tmp/");
    w.show();
    return a.exec();
}
